﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package Display.GateUI {
    import Classes.*;
    import org.aswing.ext.*;

    public class KeyCellItemFactory implements GridListCellFactory {

        private var m_listData:Array;
        private var m_index:int;

        public function KeyCellItemFactory(_arg1:Array){
            this.m_listData = _arg1;
            this.m_index = 0;
        }
        public function createNewGridListCell():GridListCell{
            var _local1:Item = (this.m_listData[this.m_index].item as Item);
            this.m_index++;
            return (new KeyCell(_local1.icon, _local1.localizedName, _local1.cash, Global.player.inventory.getItemCountByName(_local1.name)));
        }

    }
}//package Display.GateUI 
